const readline = require("readline-sync");
var num = readline.question("请输入一个数字");
var result = 0;
for(var i = 1;i<=num;i++){
    result += i;
}
console.log(result);
